<?php

namespace catchAdmin\model;

use think\facade\Cache;

class Timer
{


    /**
     * php think timer:run a
     */
    public function a()
    {
    }


    /**
     * php think timer:run needDeadline
     */
    public function needDeadline()
    {
        (new Need())
            ->where('need_ent_date', "<", date("Y-m-d"))
            ->update([
                'stage'       => 4,
                'need_status' => 2,
            ]);
    }

}
